import { App } from 'vue'
import {
  Button,
  NavBar,
  Tabbar,
  TabbarItem,
  Checkbox,
  Toast,
  Icon,
  Popup,
  Swipe,
  SwipeItem,
  List,
  PullRefresh,
  ActionBarIcon,
  Search,
  Loading,
  Field,
  SwipeCell,
  Uploader,
  Form,
  ActionSheet,
  DatetimePicker,
  Picker,
  CheckboxGroup,
  Dialog,
  Switch,
  RadioGroup,
  Radio
} from 'vant'

export function registerGlobComp(app: App) {
  app
    .use(Button)
    .use(NavBar)
    .use(Tabbar)
    .use(TabbarItem)
    .use(Checkbox)
    .use(Toast)
    .use(Icon)
    .use(Popup)
    .use(Swipe)
    .use(SwipeItem)
    .use(List)
    .use(PullRefresh)
    .use(ActionBarIcon)
    .use(Search)
    .use(Loading)
    .use(Field)
    .use(SwipeCell)
    .use(Uploader)
    .use(Form)
    .use(ActionSheet)
    .use(DatetimePicker)
    .use(Picker)
    .use(CheckboxGroup)
    .use(Dialog)
    .use(Switch)
    .use(RadioGroup)
    .use(Radio)
}
